Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera Does not Require a Password #1146

Open
jethornton opened this issue Feb 13, 2019 · 13 comments
Open

Camera Does not Require a Password #1146

jethornton opened this issue Feb 13, 2019 · 13 comments

Comments

@jethornton
Copy link

I have a D-Link DSC-5020L camera and it does not require a password. When I try and add it I get this error
cannot concatenate 'str' and 'NoneType' objects

@jethornton
Copy link
Author

Oh I forgot to mention it has a user name but no password

@rotrials
Copy link

rotrials commented Feb 14, 2019

Please try something like:

rtsp://ip:port/Streaming/Channels/101/
or
rtsp://username:password@ip:port/Streaming/Channels/101/

But I think this kind of camera does not support RTSP :(

@jethornton
Copy link
Author

screenshot at 2019-02-14 11-14-29
And how would that help the actual problem that motioneye tries to concatenate the empty password field?

@ccrisan
Copy link
Collaborator

ccrisan commented Feb 14, 2019

@jethornton please specify your motionEye version and please attach your motioneye log.

@jethornton
Copy link
Author

motionEye Version | 0.39.3
Motion Version | 4.0
OS Version | Debian 9.7
motioneye.log

Thanks for the link to get the motioneye log.
JT
 

@ccrisan
Copy link
Collaborator

ccrisan commented Feb 14, 2019

@jethornton do you have your credentials embedded into the URL? If yes, can you please remove them and try again?

@jethornton
Copy link
Author

The URL is http://192.168.1.50/video.cgi?resolution=VGA and I put admin in the user box and nothing in the password box because it does not require a password.

@ccrisan
Copy link
Collaborator

ccrisan commented Feb 15, 2019

Can you open the http://192.168.1.50/video.cgi?resolution=VGA link with your browser and see a valid MJPEG? If yes, can I see a screenshot of it, just to make sure it's indeed a MJPEG stream without any surrounding HTML crap?

@jethornton
Copy link
Author

Here you go, I don't have any problem logging into the camera from a web page. The only problem is as above MotionEye fails because the password is empty.

screenshot at 2019-02-15 12-22-54

@ccrisan
Copy link
Collaborator

ccrisan commented Feb 15, 2019

I have cameras with empty password and I can't seem to reproduce your error, that's my problem. The stack trace does not show up in your log file.

@jethornton
Copy link
Author

Does your camera need a user name but no password? That's what my camera needs. I don't have any problem if I supply no user name and no password or a user name and a password. If I put a user name and no password then the concatenation attempt fails with empty password field.

@ccrisan
Copy link
Collaborator

ccrisan commented Feb 16, 2019

@jethornton I configured one of my cameras to require user and no password, for this specific purpose. I can add it without problem.

Could you please set the log_level to debug, repeat the operation and see what the log has to say?

@jethornton
Copy link
Author

This is the only entry in the log after I attempt to add the camera and setting log_level to debug.
Feb 17 14:22:05 server meyectl[2412]: Failed to open /dev/video0: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants